﻿{{include file="../include/01_head.tpl"}}
{{include file="../include/02_menu.tpl"}}
<script type="text/javascript">var base_url = "{{""|base_url}}", edialog, ndialog;</script>
<div class="g-d-w- lh28 p-l-12 b-d-b-c-ccc f-w-b f-z-11">
	Album<span class="f-w-n"> ›› </span> 
</div>
<div class="b-g-c-eee- b-d-b-c-ccc p-4">
    <div class="p-r">
        <div class="grid_10 p-a t-0 l-0 b-0 b-g-c-w- z-i-1 b-d-c-ccc">
            <div class="h-24 b-d-b-c-ccc l-h-24 g-d-w">
                <span class="p-l-8 f-w-b">List</span>
                <span class="p-r-8 p-l-20 f-r add c-s-p a" onclick="_detail('')">Add</span>
            </div>
            <div class="p-a t-24 l-0 r-0 b-0 o-v-f-a">
                <table class="classic-table wi">
                    <tr class="g-d-w l-h-16">
                        <td class="w-20"></td>
                        <td>Title</td>
                        <td class="w-40">#</td>
                    </tr>
                    {{foreach $data as $item}}
                    <tr class="l-h-16">
                        <td></td>
                        <td>
                            <tt>{{$item->cont_id}}</tt>{{$item->cont_subject|escape:'html'}}
                        </td>
                        <td>
                            <img class="s-w-h c-s-p" 
                                onclick="_detail('{{$item->cont_id}}')"
                                src='{{base_url()}}libraries/images/16/icon_edit.png' alt=""/>
                        </td>
                    </tr> 
                    {{/foreach}}
                {{if not isset($item)}}<tr><td colspan="3" class="t-a-c">No data to display.</td></tr>{{/if}}
                </table>
            </div>
        </div>
        <div class="b-g-c-eee- p-r r-0 prefix_10">
            <div id="editor_box" class="m-l-6 b-d-c-ccc p-r b-g-c-w-" style="min-height: 500px">
                <div class="p-a t-0 l-0 b-0 r-0 tranf-w-50 d-p-n" style="z-index: 1001"></div>
                <div class="p-a t-0 l-0 b-0 r-0 b-g-ldg b-g-c-w i-l-d d-p-n" style="z-index: 1002"></div>
                <div class="content-biz"></div>
                <div class="clear"></div>
            </div>
        </div>
        <div class="clear"></div>
    </div>
</div>
<script type="text/javascript">
    function _detail(id){
        backendloading();
        $("#editor_box .content-biz").load(
            "{{base_url()}}admincp/contact/editor/" + id,
            function() {

                
            }
        );
    }
    
</script>
{{include file="../include/04_foot.tpl"}}
